package com.self.service.controller;


import com.self.service.domain.Result;
import com.self.service.util.ResultUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

@RestController
@Api(value = "连接测试", tags = "测试服务器连接")
@RequestMapping(value = "Hello")
public class HelloController {
    private static final Logger LOGGER = LoggerFactory.getLogger(HelloController.class);


    @ApiOperation(value = "连接测试", notes = "查看服务器是否开启", httpMethod = "GET")
    @RequestMapping(value = "hello", method = RequestMethod.GET)
    public Result hello(HttpServletResponse response) throws Exception {
        return ResultUtil.success("你看见我了");
    }


}
